package com.example;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * 获取天气信息Controller
 */
@RestController
@RequestMapping("/api/agent")
public class AgentController {
 
    @Resource
    private AgentService agentService;
 
    @GetMapping("/chat")
    public String getDressingAdvice() {
        String userInput = "今天穿什么衣服";
        return agentService.getDressingAdvice(userInput);
    }
}